--public Options object w
DKPMCopt = {}


-- Options table
local options = {
			type = 'group', 
			args = {
				raid = {
					name = "Core settings",
					desc = "Settings for handling the core engine",
					type = 'group', 
					inline = false,
					order = 1,

					args = {
						combatSettings = {
						type = "group",
						name = "Combat settings",
						inline = true,
						args = {
								viewInCombat = {
								name = "Show in combat",
								desc = "Toggle to control if the bidding dialog should autoshow if bidding starts while in combat",
								type = "toggle",
								get = function (info) return zKP_Client_Variables.options.gui.showBidDialogInCombat end,
								set = function (info, value) zKP_Client_Variables.options.gui.showBidDialogInCombat = value end,
								},
							}, -- args
						}, -- CombatSettings END
						
						vcEngine = {
						name = "Version Check",
						desc = "Sends a version check and prints the result to the default chat frame",
						type = "execute",
						func = function (info)DKPMCvcEngine:SendVersionCheckPulse() end,
						}-- vcEngine end
					},-- args end
				},

				WLEngine = {
					name = "Waiting List Engine",
					desc = "The Waiting List Engine handles waiting list events fired from the DKPManager Server such as the DKP reminder frame, the countdown timer between events etc. etc.",
					type = 'group', 
					inline = false,
					order = 2,
					args = {	
					  WLEngine = {
							name = "Use WL Engine",
							desc = "Enable/Disable's the Waiting List Engine.",
							type = 'toggle',
							get = function(info) return zKP_Client_Variables.options.use_wl_engine end,
							set = function(info, value) zKP_Client_Variables.options.use_wl_engine = value end,
						},
					  
					  WLTimer = {
							name = "Use WL Timer Engine",
							desc = "Enable/Disable's the Waiting List Engine.",
							type = 'toggle',
							get = function(info) return zKP_Client_Variables.options.use_wl_timer end,
							set = function(info, value) zKP_Client_Variables.options.use_wl_timer = value end
						},
						leader = {
								name = "DKP Leader",
								desc = "Name of the player running DKPManager Server",
								type = 'input', 
								order = 2,								
								get = function (info) return zKP_Client_Variables.DkpLeader.name end,
								set = function (info, value) zKP_Client_Variables.DkpLeader.name = value end,
						},

					},
				},

			}
}




function DKPMCopt:LoadOptions()

	LibStub("AceConfig-3.0"):RegisterOptionsTable("DKPManager Client", options, "dkp")
	optionsFrame = LibStub("AceConfigDialog-3.0"):AddToBlizOptions("DKPManager Client", "DKPManager Client")

end

function DKPMCopt:Show()
	InterfaceOptionsFrame_OpenToCategory(optionsFrame)	
end


----------------------------------------------------
------------------ GET/SET METHODS -----------------
----------------------------------------------------

function DKPMCopt:SetIsWLEngineOn(boolean)
	
	
end